package MVCEX1BT2;

import java.util.concurrent.SynchronousQueue;

public class Models {

	public void tinhtoan0(Entity obj){
		System.out.println(obj.getA()+obj.getB());
	}
	public void tinhtoan1(Entity obj){
		System.out.println(obj.getA()-obj.getB());
	}
	public void tinhtoan3(Entity obj){
		if (obj.getB()==0&&obj.getA()!=0){
			System.out.println("Cannot be divided by Zero");
		}else if (obj.getB()==0&&obj.getA()==0){
			System.out.println("Result of function is unidentified");
		}else{
			System.out.println(obj.getA()/obj.getB());
		}
	}
	public void tinhtoan2(Entity obj){
		System.out.println(obj.getA()*obj.getB());
	}
}
